#ifndef __LEVEL_RESULT_SCENE_H__
#define __LEVEL_RESULT_SCENE_H__

#include "cocos2d.h"

#include "SimpleAudioEngine.h"

#include "CMyGameDef.h"

using namespace cocos2d;

class LevelResultScene : public cocos2d::CCLayer
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();  

    // there's no 'id' in cpp, so we recommand to return the exactly class pointer
    static cocos2d::CCScene* scene();
    
    // a selector callback
    virtual void menuCallback(CCObject* pSender);

    // implement the "static node()" method manually
    CREATE_FUNC(LevelResultScene);

public :
	void makeResultInfo(void);
	void updateScene(float dt);

protected :
	CCLabelTTF *m_pLabelEnemyKills[MAX_ETANK_TYPES];
	CCLabelTTF *m_pLabelEnemyScore[MAX_ETANK_TYPES];
	CCLabelTTF *m_pLabelPlayerScore;
	CCLabelTTF *m_pLabelTotalScore;
	CCLabelTTF *m_pLabelHiScore;
	float m_fLastTime;
	int m_nStep;
	int m_nTotalScore;
};

#endif  // __LEVEL_RESULT_SCENE_H__